import EnumFactory from './enumFactory'

export const enumGender = new EnumFactory(
  {
    1: { text: '男', type: 'priary' },
    2: { text: '女', type: 'warning' },
    9: { text: '其他', type: 'info' }
  },
  parseInt
)

export const enumStatus = new EnumFactory({
  enable: { text: '启用', type: 'success' },
  disable: { text: '禁用', type: 'danger' }
})

export const enumAlign = new EnumFactory({
  left: '左',
  middle: '中',
  right: '右'
})
